﻿.tabs {
    --bb-tabs-item-padding: 0 1rem;
    --bb-tabs-item-height: 40px;
    --bb-tabs-item-active-bg: #fff;
    --bb-tabs-item-active-color: #409eff;
    --bb-tabs-item-hover-color: #409eff;
    --bb-tabs-border-card-top-item-margin-top: -1px;
    --bb-tabs-border-color: #e4e7ed;
    --bb-tabs-border-card-header-bg-color: #f5f7fa;
    --bb-tabs-bar-width: 40px;
    --bb-tabs-bar-height: 40px;
    --bb-tabs-bar-bg: #409eff;
    --bb-tabs-body-padding: 1rem;
    --bb-tabs-header-vertical-min-width: 126px;
    display: flex;
    flex-flow: column;
}

.tabs,
.tabs-body-content {
    height: 100%;
}

    .tabs .tabs-nav-wrap {
        position: relative;
        height: var(--bb-tabs-item-height);
    }

        .tabs .tabs-nav-wrap:after {
            content: "";
            height: 2px;
            background-color: var(--bb-tabs-border-color);
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .tabs .tabs-nav-wrap .dropdown-toggle:after {
            display: none;
        }

        .tabs .tabs-nav-wrap .dropdown-item {
            transition: background-color .3s linear;
        }

            .tabs .tabs-nav-wrap .dropdown-item:hover {
                background-color: var(--bb-tabs-item-hover-color);
            }

    .tabs .tabs-nav-scroll {
        position: absolute;
        overflow: hidden;
        left: 0;
        right: 0;
        height: 100%;
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    }

    .tabs .extend .tabs-nav-scroll {
        left: var(--bb-tabs-bar-width);
        right: calc(2 * var(--bb-tabs-bar-width));
        border-radius: 0;
    }

    .tabs .tabs-nav {
        white-space: nowrap;
        position: relative;
        display: flex;
        height: 100%;
    }

    .tabs .nav-link-bar {
        position: absolute;
        cursor: pointer;
        font-size: 1rem;
        color: var(--bs-body-color);
        width: var(--bb-tabs-bar-width);
        height: 100%;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--bb-tabs-border-color);
        display: none;
    }

        .tabs .nav-link-bar.left {
            border-width: 0;
            left: 0;
            top: 0;
        }

        .tabs .nav-link-bar.right {
            border-width: 0;
            right: var(--bb-tabs-bar-width);
            top: 0;
        }

        .tabs .nav-link-bar.dropdown {
            border-width: 0 0 1px 1px;
            right: 0;
            top: 0;
            border-radius: 0 var(--bs-border-radius) 0 0;
        }

    .tabs .extend .nav-link-bar {
        display: flex;
    }

        .tabs .extend .nav-link-bar.left {
            border-width: 0 1px 1px 0;
        }

        .tabs .extend .nav-link-bar.right {
            border-width: 0 0 1px 1px;
        }

    .tabs .of .tabs-nav-scroll {
        left: var(--bb-tabs-bar-width);
        right: var(--bb-tabs-bar-width);
        border-radius: 0;
    }

    .tabs .of .nav-link-bar {
        display: flex;
    }

        .tabs .of .nav-link-bar.right {
            right: 0;
        }

    .tabs .tabs-active-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        background-color: var(--bb-tabs-bar-bg);
        z-index: 1;
        transition: transform .3s cubic-bezier(.645,.045,.355,1);
        list-style: none;
    }

    .tabs .tabs-item {
        padding: var(--bb-tabs-item-padding);
        height: var(--bb-tabs-item-height);
        display: flex;
        list-style: none;
        font-weight: 500;
        color: var(--bs-body-color);
        cursor: pointer;
        align-items: center;
        position: relative;
        transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1), transform .3s linear;
    }

        .tabs .tabs-item.active {
            color: var(--bb-tabs-item-active-color);
        }

        .tabs .tabs-item:hover {
            color: var(--bb-tabs-item-hover-color);
        }

        .tabs .tabs-item .tabs-item-text {
            padding: 0 0.25rem;
        }

        .tabs .tabs-item.is-closeable .tabs-item-text {
            padding-right: 1rem;
        }

        .tabs .tabs-item:hover .tabs-item-close {
            display: flex;
        }

        .tabs .tabs-item .tabs-item-close {
            width: 21px;
            height: 21px;
            display: none;
            position: absolute;
            right: .5rem;
            top: 10px;
            justify-content: center;
            align-items: center;
            transition: all .3s linear;
        }

            .tabs .tabs-item .tabs-item-close:hover {
                background-color: #e4e7ed;
                border-radius: var(--bs-border-radius);
            }

    .tabs .tabs-body {
        padding: var(--bb-tabs-body-padding);
        flex: 1;
    }

    .tabs .tabs-content {
        position: relative;
    }

    /*Card*/
    .tabs.tabs-card,
    .tabs.tabs-border-card {
        border: 1px solid var(--bb-tabs-border-color);
        border-radius: var(--bs-border-radius);
    }

        .tabs.tabs-card .tabs-nav-wrap:after,
        .tabs.tabs-border-card .tabs-nav-wrap:after {
            content: none;
        }

        .tabs.tabs-card .tabs-item,
        .tabs.tabs-border-card .tabs-item {
            height: 100%;
            border: 1px solid var(--bb-tabs-border-color);
            border-width: 0 1px 1px 0;
        }

            .tabs.tabs-card .tabs-item.active,
            .tabs.tabs-border-card .tabs-item.active {
                background-color: var(--bb-tabs-item-active-bg);
                border-width: 0 1px 0px 0;
            }

    .tabs .tabs-item-fix {
        height: 100%;
        flex: 1;
        border: 1px solid var(--bb-tabs-border-color);
        border-width: 0 0 1px 0;
    }

    .tabs.tabs-card .of .nav-link-bar.left,
    .tabs.tabs-border-card .of .nav-link-bar.left {
        border-width: 0 1px 1px 0;
    }

    .tabs.tabs-card.tabs-right .of .nav-link-bar.left,
    .tabs.tabs-border-card.tabs-right .of .nav-link-bar.left {
        border-width: 0 0 1px 1px;
    }

    .tabs.tabs-card .of .nav-link-bar.right,
    .tabs.tabs-border-card .of .nav-link-bar.right {
        border-width: 0 0 1px 1px;
    }

    .tabs.tabs-card.tabs-right .of .nav-link-bar.right,
    .tabs.tabs-border-card.tabs-right .of .nav-link-bar.right {
        border-width: 1px 0 0 1px;
    }

    .tabs.tabs-vertical .of .nav-link-bar.left i {
        transform: rotate(90deg);
    }

    .tabs.tabs-vertical .of .nav-link-bar.right i {
        transform: rotate(90deg);
    }

    /*Border-Card*/
    .tabs.tabs-border-card {
        background: #fff;
        box-shadow: 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04);
    }

        .tabs.tabs-border-card .tabs-header {
            background-color: var(--bb-tabs-border-card-header-bg-color);
        }

        .tabs.tabs-border-card .nav-link-bar {
            background-color: var(--bb-tabs-border-card-header-bg-color);
        }

            .tabs.tabs-border-card .nav-link-bar.left {
                border-top-left-radius: var(--bs-border-radius);
            }

    .tabs:not(.extend).of .nav-link-bar.right {
        border-radius: 0 var(--bs-border-radius) 0 0;
    }

    .tabs.tabs-card .tabs-body {
        border-top-width: 0;
        border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    }

    .tabs.tabs-border-card .tabs-body {
        border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    }

    /*bottom*/
    .tabs.tabs-bottom {
        flex-flow: column-reverse;
    }

        .tabs.tabs-bottom .tabs-nav-wrap:after {
            top: 0;
            bottom: auto;
        }

        .tabs.tabs-bottom .tabs-nav-scroll {
            border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
        }

        .tabs.tabs-bottom .tabs-active-bar {
            top: 0;
            bottom: auto;
        }

    .tabs.tabs-card.tabs-bottom .of .tabs-nav-scroll,
    .tabs.tabs-border-card.tabs-bottom .of .tabs-nav-scroll {
        border-radius: 0;
    }

    .tabs.tabs-card.tabs-bottom .nav-link-bar.left,
    .tabs.tabs-border-card.tabs-bottom .nav-link-bar.left {
        border-radius: 0 0 0 var(--bs-border-radius);
        border-width: 1px 1px 0 0;
    }

    .tabs.tabs-card.tabs-bottom .nav-link-bar.right,
    .tabs.tabs-border-card.tabs-bottom .nav-link-bar.right {
        border-radius: 0 0 var(--bs-border-radius) 0;
        border-width: 1px 0 0 1px;
    }

    .tabs.tabs-card.tabs-bottom .tabs-body,
    .tabs.tabs-border-card.tabs-bottom .tabs-body {
        border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    }

    .tabs.tabs-card.tabs-bottom .tabs-item,
    .tabs.tabs-border-card.tabs-bottom .tabs-item {
        border-width: 1px 1px 0 0;
    }

        .tabs.tabs-card.tabs-bottom .tabs-item.active,
        .tabs.tabs-border-card.tabs-bottom .tabs-item.active {
            border-width: 0 1px 0 0;
        }

    .tabs.tabs-bottom .tabs-item-fix {
        border-width: 1px 0 0 0;
    }

    /*left right*/
    .tabs.tabs-left {
        flex-flow: row;
    }

    .tabs.tabs-right {
        flex-flow: row-reverse;
    }

    .tabs.tabs-vertical .tabs-nav-wrap {
        height: 100%;
    }

        .tabs.tabs-vertical .tabs-nav-wrap:after {
            top: 0;
            bottom: 0;
            left: auto;
            right: 0;
            height: auto;
            width: 2px;
        }

    .tabs.tabs-vertical .tabs-header {
        min-width: var(--bb-tabs-header-vertical-min-width);
    }

    .tabs.tabs-vertical .tabs-nav {
        flex-flow: column;
        height: auto;
    }

    .tabs.tabs-vertical .tabs-nav-scroll {
        border-radius: 0;
        top: 0;
        bottom: 0;
        height: auto;
    }

    .tabs.tabs-vertical .of .tabs-nav-scroll {
        top: var(--bb-tabs-bar-height);
        bottom: var(--bb-tabs-bar-height);
        left: 0;
        right: 0;
    }

    .tabs.tabs-vertical .tabs-active-bar {
        bottom: auto;
        left: auto;
        right: 0;
    }

    .tabs.tabs-vertical .tabs-item {
        height: var(--bb-tabs-item-height);
        justify-content: flex-end;
    }

        .tabs.tabs-vertical .tabs-item:last-child {
            border-width: 0 1px 0 0;
        }

    .tabs.tabs-vertical.tabs-right .tabs-nav-wrap:after {
        left: 0;
        right: auto;
    }

    .tabs.tabs-vertical.tabs-right .tabs-item {
        justify-content: flex-start;
    }

    .tabs.tabs-vertical.tabs-card .tabs-item.active,
    .tabs.tabs-vertical.tabs-border-card .tabs-item.active {
        border-width: 0 0 1px 0;
    }

    .tabs.tabs-vertical.tabs-card .tabs-item:last-child.active,
    .tabs.tabs-vertical.tabs-border-card .tabs-item:last-child.active {
        border-width: 0;
    }

    .tabs.tabs-card.tabs-right .tabs-item,
    .tabs.tabs-border-card.tabs-right .tabs-item {
        border-width: 0 0 1px 1px;
    }

        .tabs.tabs-card.tabs-right .tabs-item.active,
        .tabs.tabs-border-card.tabs-right .tabs-item.active {
            border-width: 0 0 1px 0;
        }

        .tabs.tabs-card.tabs-right .tabs-item:last-child.active,
        .tabs.tabs-border-card.tabs-right .tabs-item:last-child.active {
            border-width: 0;
        }

    .tabs.tabs-vertical.tabs-card .of .nav-link-bar.right,
    .tabs.tabs-vertical.tabs-border-card .of .nav-link-bar.right {
        border-width: 1px 1px 0 0;
    }

    .tabs.tabs-vertical.tabs-card.tabs-right .of .nav-link-bar.right,
    .tabs.tabs-vertical.tabs-border-card.tabs-right .of .nav-link-bar.right {
        border-width: 1px 0 0 1px;
    }

    .tabs.tabs-vertical .tabs-item-fix {
        border-width: 0 1px 0 0;
    }

    .tabs.tabs-vertical.tabs-right .tabs-item-fix {
        border-width: 0 0 0 1px;
    }

    .tabs.tabs-vertical .nav-link-bar {
        height: var(--bb-tabs-bar-height);
        width: 100%;
    }

        .tabs.tabs-vertical .nav-link-bar.left {
        }

        .tabs.tabs-vertical .nav-link-bar.right {
            top: auto;
            bottom: 0;
        }

    .tabs.tabs-right .tabs-active-bar {
        right: auto;
        left: 0;
    }

.is-page .layout-main > .tabs {
    margin: -1rem;
    border: none;
    border-radius: unset;
    min-height: calc(100% + 2rem);
}
